package com.uuah.server.endpoint;

import com.uuah.server.api.IUuahContext;
import com.uuah.server.api.endpoint.IUuahEndpoint;

/**
 *
 * TODO comment ...
 *
 * <p>
 * update record:updator，update time，update content and version
 * </p>
 *
 * @author <a href="jonny_quan@hotmail.com">jonny</a>
 * @date 2009 2009-3-27 下午01:37:05
 * @version 1.0.0
 */
public class EndpointURIEndpointBuilder extends AbstractEndpointBuilder {

	public EndpointURIEndpointBuilder() {
		// blank
	}

	public EndpointURIEndpointBuilder(URIBuilder URIBuilder,
			IUuahContext uuahContext) {
		this.uuahContext = uuahContext;
		this.uriBuilder = URIBuilder;
	}

	public EndpointURIEndpointBuilder(IUuahEndpoint source,
			IUuahContext uuahContext) {
		this(new URIBuilder(source.getEndpointURI()), uuahContext);
		setName(source.getName());
		setEncoding(source.getEncoding());
		setConnector(source.getConnector());
		setRequestTransformer(source.getRequestTransformer());
		setResponseTransformer(source.getResponseTransformer());
		setProperties(source.getProperties());
		setInitialState(source.getInitialState());
		setRetryPolicyTemplate(source.getRetryPolicyTemplate());
		setSynchronous(source.isSynchronous());
		setIpFilter(source.isIpFilter());
		setUuahContext(source.getUuahContext());
	}

}
